package com.hjrpc.babyyamall.search.controller;

import com.hjrpc.babyyamall.search.service.ProductSearchService;
import com.hjrpc.common.dto.Sku4SearchTo;
import com.hjrpc.common.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("search/productsearch")
public class ProductSearchController {

    @Autowired
    ProductSearchService productSearchService;

    @PostMapping("/up")
    public R up(@RequestBody List<Sku4SearchTo> sku4SearchTos) {

        return productSearchService.up(sku4SearchTos);
    }
}
